[Back]

MacOS X Developer Preview Release Notes Copyright \xa9 1999 by Apple Computer, Inc. All Rights Reserved.

Mac OS X Developer Preview Release Notes:
Debugging

This file contains release notes for the gdb and jdb command-line debuggers, and for the Project Builder visual debugging facilities. The section in this document are:

gdb
A command-line debugger for C, Objective-C, and C++ programs
jdb
A command-line debugger for Java applets and 100% Pure JavaTM programs
Project Builder
Visual debugging for C, Objective-C, and C++ programs using gdb and Java debugging using the Java debugger.

Gdb Versions

For the Mac OS X Developer Preview, gdb has been updated to a recent version, gdb-19990209.

 

Additional Documentation

A summary of command-line options for gdb is available via the manual page for gdb (1).

For more information on gdb, see the documentation in /System/Documentation/Developer/Commands/gdb/gdb. Release notes for gdb are in this document.

A single-page gdb reference card, suitable for printing, is available in both PostScript and in PDF format. For those interested in the internal workings of gdb, complete source code is available either via the Source CD, or via FTP.

Known Problems in gdb

Notes Specific to jdb

New Features

The jdb command-line debugger from JavaSoft is included in the Mac OS X Developer Preview. You can find the documentation for jdb for Mac OS X at:

http://java.sun.com/products/jdk/1.1/docs/tooldocs/solaris/jdb.html

and for Windows at:

http://java.sun.com/products/jdk/1.1/docs/tooldocs/win32/jdb.html

 

Known Problems

jdb Does not Work With "Pure Yellow Box Java"

Yellow Box Java applications, that is, those that subclass from NSPureApplication and are started with the java command, do not work with jdb. For example, this command fails:

jdb com.apple.yellow.application.NSPureApplication -YBJavaApplicationPath /<wherever>/TextEdit.app"

 

Notes Specific to Project Builder Debugging

Project Builder provides integrated, visual debugging of programs through the Launcher panel (). This panel can be used to run or debug executables built by your project.

Notes on Using Java

There is a new tutorial for developing Yellow Box Java Applications (<Link TO Terrys Tutorial>); this document describes how to use InterfaceBuilder and ProjectBuilder to create and manage Java applications. Here are view hints regarding debugging Java

New Features for Mac OS X Server

Known Problems

Only Debug Yellow Box Java Applications

There is no debugging support for Java applets or 100% Pure Java applications.

 

Setting Breakpoints Before Running

You cannot set breakpoints in Java code before the debugger is running. As the Java VM starts up, there is a race condition between the starting of the debugger and the starting of the application. Therefore, some of your code will execute before the debugger becomes active and you are not able to set a breakpoint in this code.

 

No mixed stack backtrace

The stack back trace from the Java debugger includes only Java frames. Calls to native methods are not shown.

 

 

New Features for DR2

The following new features have been added to Project Builder for debugging since the Developer Release.